package com.itheima.a01mymap.a07mycollections;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class CollectionsDemo {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        Collections.addAll(list,"abc","bcd","qwer","df","asdf","zxcv","1234","qwer");
        System.out.println(list);

        //打乱集合顺序
        Collections.shuffle(list);
        System.out.println(list);
    }
}
